
# Register your models here.
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import gettext, gettext_lazy as _

from .models import *


# class MyStaffAdmin(UserAdmin):
#     list_display = ('name','is_active','is_staff','is_superuser','phone','sex')
#     # fieldsets = (
#     #     (None, {'fields': ('name', 'password')}),
#     #     (_('Personal info'), {'fields': ('first_name', 'last_name')}),
#     #     (_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser',
#     #                                    'groups', 'staff_permissions')}),
#     #     (_('Important dates'), {'fields': ('last_login', 'date_joined')}),
#     # )
# admin.site.register(Staff, MyStaffAdmin)


@admin.register(Staff)
class StaffAdmin(admin.ModelAdmin):
    list_display = ('staff_id', 'name', 'phone', 'address', 'head')
    list_display_links = ('name', 'phone')